import ADQ from "../../ADCore/Core/ADQ";
import ValueNumber from "./ValueNumber";
import TailingGenarator from "./TailingGenarator";

/**特效管理器 */
export default class EffectManager {
  static effectList: Array<Laya.Sprite> = [];
  /**分数显示 */
  static valueDisplay(x, y, sx, value) {
    var sprite = new ValueNumber(value);
    ADQ.getSceneManager().addElementToLayer(sprite, x, y);
    sprite.play();
  }
  /**拖尾显示 */
  static showTailing(x, y, imgurl, interval) {
    var sprite = new TailingGenarator(imgurl, interval);
    ADQ.getSceneManager().addElementToLayer(sprite, x, y);
    sprite.play();
  }
}
